#ifndef __UILANGUAGEMIDBAR__H__
#define __UILANGUAGEMIDBAR__H__

#include <MZFCLIB.h>

#include	"iUiButton.h"
#include	"UiStatusBar.h"
#include	"UiLanguageDownBar.h"

class UiLanguageMidBar :
	public UiWin
{
public:
	UiLanguageMidBar();
	~UiLanguageMidBar();

	BOOL InitUiWin(void);

	void PaintWin(HDC hdc, RECT* prcWin, RECT* prcUpdate);
	virtual int OnLButtonDown(UINT fwKeys, int xPos, int yPos);
	virtual int OnLButtonUp(UINT fwKeys, int xPos, int yPos);
	virtual void DeleteImages();

	void LoadiInterItem();
	BOOL InitImages();
public:
	ImagingHelper	*m_MidBarBG;

	HDC				m_hBakDC;
	HBITMAP			m_hBitmapBakDC;
//	HWND	m_hWnd;
	UiPicture		m_PicLanguage[MAX_LANGUAGE_DOWNBAR_BTN];
	DWORD			m_CurrentLanguage;
	void ChangeChildPicture(DWORD dwLanguage);
};

#endif